package com.hdu.webServer.multi;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

@Slf4j
public class Client {
    public static void main(String[] args) throws IOException {
        SocketChannel sc = SocketChannel.open();
        sc.connect(new java.net.InetSocketAddress("localhost", 8080));
        log.info("waiting...");
        sc.write(ByteBuffer.wrap("hello".getBytes()));
        System.in.read();
    }
}
